<div class="row">
<?php echo $this->Html->link('Adicionar categoria',array('controller' => 'categorias', 'action' => 'add'), array('class' => 'btn btn-default pull-right'))?>
</div>
<div class="row">
<table class="table">
  <thead>
    <tr>
        <th>Id</th>
        <th>Nome</th>
        <th>Criação</th>
        <th>Ações</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($categorias as $categoria): ?>
    <tr>
        <td><?php echo $categoria['Categoria']['id']; ?></td>
        <td>
            <?php echo $categoria['Categoria']['nome']; ?>
        </td>
        <td><?php echo $categoria['Categoria']['created']; ?></td>
        <td>
            <?php echo $this->Html->link('Editar', array('action'=>'edit', $categoria['Categoria']['id']), array('class'=>'btn btn-default'));?>
            <?php echo $this->Html->link('Remover', array('action' => 'delete', $categoria['Categoria']['id']), array('class'=>'btn btn-default'), 'Deseja remover?' )?>
        </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
</div>
